package com.zqc.myp;


import com.zqc.annotation.MethodCost;

/** Created by zhangqianchu on 2019/1/31. */
public class Test {

  public long function() {
    //    MethodCostManager.start("Test.function", System.currentTimeMillis());
    long result = 0;
    for (int i = 0; i < 100000; i++) {
      result += i;
    }
    //    MethodCostManager.startCost("Test.function");
    return result;
  }

  @MethodCost("Test.costTest")
  public void costTest() {
    long result = 0;
    for (int i = 0; i < 100000; i++) {
      result += i;
    }
  }
}
